//
//  CustomModel.m
//  封装UIView
//
//  Created by adiljan on 16/9/2.
//  Copyright © 2016年 adiljan. All rights reserved.
//

/**
 *  CustomModel.m文件
 */
#import "CustomModel.h"

@implementation CustomModel
+ (instancetype)modelWithName:(NSString *)name titleColor:(NSString *)titleColor icon:(NSString *)icon
{
    return [[self alloc] initWithName:name titleColor:titleColor icon:icon];
}

- (instancetype)initWithName:(NSString *)name titleColor:(NSString *)titleColor icon:(NSString *)icon
{
    if (self = [super init]) {
        self.name = name;
        self.icon = icon;
        self.titleColor = titleColor;
    }
    return self;
}
@end